import request from "../../utils/request";

// 视频标签列表
export const getVideoGroupList = (params) =>
    request({
        path: "/video/group/list",
        method: "GET",
        params
    })

// 视频分类列表
export const getVideoCategoryList = (params) =>
    request({
        path: "/video/category/list",
        method: "GET",
        params
    })

// 获取视频标签/分类下的视频

export const getVideoGroup = (params) =>
    request({
        path: "/video/group",
        method: "GET",
        params
    })

// 获取全部视频列表
export const getVideoTimelineAll = (params) =>
    request({
        path: "/video/timeline/all",
        method: "GET",
        params
    })

// 获取推荐视频
export const getVideoTimelineRecommend = (params) =>
    request({
        path: "/video/timeline/recommend",
        method: "GET",
        params
    })

// 相关视频
export const getRelatedAllVideo = (params) =>
    request({
        path: "/related/allvideo",
        method: "GET",
        params
    })

// 相关视频
export const getVideoDetail = (params) =>
    request({
        path: "/video/detail",
        method: "GET",
        params
    })

// 获取视频点赞转发评论数数据

export const getVideoDetailInfo = (params) =>
    request({
        path: "/video/detail/info",
        method: "GET",
        params
    })

// 获取视频播放地址

export const getVideoUrl = (params) =>
    request({
        path: "/video/url",
        method: "GET",
        params
    })